package com.onlineclass.onlineclassmanagement.feign;

import com.onlineclass.beas.ResultObject;
import com.onlineclass.beas.User;
import com.onlineclass.onlineclassmanagement.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "userServer",configuration = FeignConfig.class)
public interface UserFeign {

    @RequestMapping("/user/login")
    User login(@RequestBody User user);

    @RequestMapping(value = "/user/selectUserInfo")
    ResultObject selectUserInfo();


}
